<?php
require_once (METAPATH  . 'metabox.php');		// Carbon Paper Meta Functions

// Enqueue Backend Meta style :
if ( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'event' ) {
        wp_enqueue_style('custom_meta_css', TEMPLATEURL . 'includes/meta/css/meta.css');

        // Enqueue Event Metabox scripts
        add_action('admin_print_scripts', 'event_javascript');
        function event_javascript(){
                wp_enqueue_script('datepicker',TEMPLATEURL . 'js/ui.datepicker-1.8.9.js',array('jquery','jquery-ui-core'));
                wp_enqueue_script('datepicker-fr',TEMPLATEURL . 'js/ui.datepicker-fr.js');
 				// Conflict with non hierarchical taxonomies
                //wp_enqueue_script('validator',TEMPLATEURL . 'js/jquery.validate.js');
                //wp_enqueue_script('validator-fr',TEMPLATEURL . 'js/messages_fr.js');
}
        
        // Enqueue Event Metabox styles
        add_action('admin_print_styles', 'event_css');
        function event_css(){
          global $post;
//          if($post->post_type == 'buzz')
                wp_enqueue_style('datepicker', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css');
        }
}
?>